package com.qk.exception;

import com.qk.enums.Code;

/**
 *
 * @author lyl
 * @created 2025/10/10 15:54
 * @description
 *
 */

public class CommonException extends BaseException{
    public CommonException(Code code) {
        super(code.getMsg());
    }
    public static void throwCommonException(Code code) {
        throw new CommonException(code);
    }
}
